package com.sf.fy.uav.applet.operate.controller;

import com.alibaba.fastjson.JSONObject;
import com.sf.fy.uav.common.utils.Rs;
import com.sf.fy.uav.rest.SysMapRest;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author 01430312
 */
@RestController
@RequestMapping("/sys/map/")
public class SysMapController {


    @Autowired
    private SysMapRest sysMapRest;

    @GetMapping("address-resolution")
    @Operation(tags = "地址逆解析", description = "地址逆解析")
    public Rs<JSONObject> addressResolution(String address) {
        return Rs.success(sysMapRest.addressResolution(address));
    }


}
